package com.qeado.site.dao.ibatis;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.qeado.common.dao.BaseDao;
import com.qeado.site.dao.FilterWordManagerDao;
import com.qeado.site.model.FilterWord;

@Repository
@SuppressWarnings("unchecked")
public class FilterWordManageDaoImpl extends BaseDao implements FilterWordManagerDao {

	public List<FilterWord> getFilterWordByWord(FilterWord fiterWord) {
		return getSqlMapClientTemplate().queryForList("getFilterWordByWord",fiterWord);
	}

	public void insertNewFilterWord(FilterWord filterWord) {
		getSqlMapClientTemplate().insert("saveNewFilterWord",filterWord);
	}

	public void deleteFilterWordByWord(FilterWord filterWord) {
		getSqlMapClientTemplate().delete("deleteFilterWordByWord",filterWord);
	}

	@Override
	public Object searchFilterWordByWord(FilterWord fiterWord) {
		return getSqlMapClientTemplate().queryForObject("searchFilterWordByWord",fiterWord);
	}
	
	

}
